#include "transforms.h"

/*!
    \brief      Clarke
    \param[in]  
    \param[out] 
    \retval
 */
void CLARKE_Run(CLARKE *v)
{
    v->Alpha = v->As;
    v->Beta = ((v->Bs - v->Cs)*ONEbySQRT3)>>15;
}

/*!
    \brief      
    \param[in]  
    \param[out] 
    \retval
 */
void PARK_Run(PARK *v)
{
    v->Ds = (v->Alpha*v->Cosine + v->Beta*v->Sine)>>15;
    v->Qs = (-v->Alpha*v->Sine + v->Beta*v->Cosine)>>15;
}

/*!
    \brief      iPark
    \param[in]  
    \param[out] 
    \retval
 */
void iPARK_Run(IPARK *v)
{
    v->Alpha = (v->Ds*v->Cosine - v->Qs*v->Sine)>>15;
    v->Beta  = (v->Qs*v->Cosine + v->Ds*v->Sine)>>15;
}
